import 'dart:io';

main() async {
  var socket = await WebSocket.connect('ws://localhost:8080/ws');
  socket.listen(
    (data) {
      print('Received: $data');
    },
    onError: (e) {
      print('Error: $e');
    },
  );
}
